package com.gongzhiyun.springboot3test.entity.novel;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("novel_list")
@Schema(description = "小说列表表")
public class NovelList implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @TableField(updateStrategy = FieldStrategy.NEVER)
    @Schema(description = "主键", example = "1")
    private Integer id;
    @Schema(description = "小说标题", example = "gzy")
    private String novelTitle;
    @Schema(description = "小说作者id", example = "1")
    private Integer authorId;
    @Schema(description = "小说作者名称", example = "gzy")
    private String authorName;
    @Schema(description = "小说类型id", example = "1")
    private Integer typeId;
    @Schema(description = "小说简介", example = "哈哈哈")
    private String novelInfo;
    @Schema(description = "小说封面", example = "哈哈哈")
        private String coverImg;
    @TableField(updateStrategy = FieldStrategy.NEVER)
    @Schema(description = "小说创建时间", example = "2023-05-01 12:00:00")
    private Date createTime;
    @TableField(updateStrategy = FieldStrategy.NEVER)
    @Schema(description = "小说最后更新时间", example = "2023-05-01 12:00:00")
    private Date updateTime;
    @Schema(description = "小说总章节数", example = "1")
    private Integer totalChapters;
    @Schema(description = "小说状态", example = "'ongoing':连载中, 'completed':已完结, 'draft':草稿")
    private String status;
    @Schema(description = "小说评分", example = "0.0")
    private Double rating;
}
